package com.hs.device.service;

import com.hs.device.dto.DetectorDto;
import com.hs.device.dto.UpdateDetectorDto;
import com.hs.device.entity.Detector;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.common.api.dto.ResultVo;

/**
 * <p>
 * detector 服务类
 * </p>
 *
 * @author Ding
 * @since 2022-07-20
 */
public interface IDetectorService extends IService<Detector> {

    ResultVo findDeviceByConditions(Integer current,Integer size,Long deviceId, String deviceName, Integer berthId);

    ResultVo addDetector(DetectorDto detectorDto);

    ResultVo updateDevice(UpdateDetectorDto updateDetectorDto);

    ResultVo deleteDevice(Integer detectorId);

    ResultVo senseNewCar(Long id,String carLicensePlate);

    ResultVo outOneCar(Long id);

    ResultVo unbindDevice(Integer roadId);

    ResultVo bindDevice(Integer detectorId,Long berthId);

}
